<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Docentes extends CI_Controller{
	function __construct(){
		parent::__construct();
		$this->load->model('User_model');
		$this->_is_logued_in();
	}
	
	function index(){	
		$data['title']="CIPOST :: Docentes";
		$data['activo'] = "docentes";
		$data['nombresession'] = $this->User_model->nombresession($this->session->userdata('id'))->row();
		$data['main_content']="docentes/indice";
		$this->load->view('includes/template',$data);
	}
	
	function listas(){
		
	}

	function _is_logued_in(){
		$is_logued_in=$this->session->userdata('is_logued_in');
		$user_id=$this->session->userdata('id');
		if($is_logued_in!=TRUE or $user_id='')		
			redirect('/index.php/user/login');
	}
}